package com.budwk.app.sqfwDoc.models;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.budwk.starter.common.openapi.annotation.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;
import java.util.Map;

/**
 * @author ZY.Wang
 * @since 2023/12/13
 */
@Data
@Accessors(chain = true)
@Table("shequ.sqfw_template_history")
@Comment("社区业务配置历史记录")
@ApiModel(description = "社区业务配置历史记录")
public class SqfwTemplateHistory {

    @Column("id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    @Name
    @PrevInsert(uu32 = true)
    private String id;

    @Column("history_type")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String historyType;

    @Column("related_id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String relatedId;

    @Column("remark")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String remark;

    @Column("defaultRemark")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String defaultRemark;

    @Column("data_json")
    @ColDefine(type = ColType.TEXT)
    private String dataJson;

    @Column("create_by")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String createBy;

    @Column("create_time")
    @ColDefine(type = ColType.DATETIME)
    private Date createTime;

    @Column("update_by")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String updateBy;

    @Column("update_time")
    @ColDefine(type = ColType.DATETIME)
    private Date updateTime;
}
